package com.briup.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * @author briup
 * @program: mp-demo01
 * @description TODO
 * @create 2023/3/9 16:37
 **/
@Data
//@TableName("user")
public class User {
//    @TableId(type = IdType.ASSIGN_ID)
//    @TableId(type = IdType.ASSIGN_UUID)
    private Long id;

    private String name;

    //@TableField(value = "pwd", select = false)
    private String password;

    private Integer age;
    private String tel;

    //忽略该属性，不去数据库查找
    @TableField(exist = false)
    private Integer online;

    @TableLogic(value = "0", delval = "1")
    private Integer deleted;
}
